#pragma once
#include<stdint.h>
//
enum RPCService:uint16_t{
Status=1,
Login=2,
Contract=3,
};

enum class Command:uint16_t{
StatusService=RPCService::Status<<8,
StatusOK,
StatusBad,
//StatusOKNOContent,
Hello,
LoginService=RPCService::Login<<8,
HandShake,
LoginUser,//user and password
LoginToken,//
ContractService=RPCService::Contract<<8,
GetExchanges,
GetSysCollections,
GetCollectionList,//arg:int8[query type]
GetCollectionContent,//arg:pb_int64 collection_id
GetContractBar,//arg:int8 exchan_id,char[6] symbol,int8 barsize,int16 start_pos,int16 count
UpdateContractBar//arg:int8 exchan_id,char[6] symbol,int8 barsize,
};//<CMD_END>

